<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>cw-flink</title>
  </head>
  <body style="background-color: white">

  <input type="button" value="获取数据" id='btn'>
<!-- P146 -->
   <script src="./node_modules/jquery/dist/jquery.min.js"></script>
   <script>
  $(function(){
      $('#btn').on('click',function(){
          $.ajax({
              url:'./data.json',
              type:'get',
              dataType:'json'
            //   ,
            //   success:function(data){
            //       console.log(data)
            //   }
          })
          .then(function(data){
                  console.log(data)
              }
          )

      })
  }); 
   </script>
  </body>
</html>
